<?php
     defined('_JEXEC') or die('Restricted access'); 
	jimport('joomla.application.component.model');
	class work_pointModelfunction_library extends JModel
	{
	   function check_emplyee($id_em)
       {
            $db = JFactory::getDBO();
            $sql = "select count(*) from #__erp_employee_profile where id_employee = '".$id_em."'";
            $db->setQuery($sql);
            $rs= $db->loadResult();
            return $rs;
       }
	}
?>